package com.ruoyi.model.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

public class ModelScheme extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;
    @Excel(name = "任务名称前缀")
    private String taskNamePre;

    @Excel(name = "方案编码")
    private Long planId;

    @Excel(name = "周期类型")
    private String cycleType;

    @Excel(name = "周期天数")
    private Integer cycleDay;

    @Excel(name = "最新周期开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date cycleStartTime;

    @Excel(name = "最新周期结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date cycleEndTime;
    @Excel(name = "任务图层标签前缀")
    private String taskLayerPre;
    @Excel(name = "方案名称")
    private String planName;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTaskNamePre() {
        return taskNamePre;
    }

    public void setTaskNamePre(String taskNamePre) {
        this.taskNamePre = taskNamePre;
    }

    public Long getPlanId() {
        return planId;
    }

    public void setPlanId(Long planId) {
        this.planId = planId;
    }

    public String getCycleType() {
        return cycleType;
    }

    public void setCycleType(String cycleType) {
        this.cycleType = cycleType;
    }

    public Integer getCycleDay() {
        return cycleDay;
    }

    public void setCycleDay(Integer cycleDay) {
        this.cycleDay = cycleDay;
    }

    public Date getCycleStartTime() {
        return cycleStartTime;
    }

    public void setCycleStartTime(Date cycleStartTime) {
        this.cycleStartTime = cycleStartTime;
    }

    public Date getCycleEndTime() {
        return cycleEndTime;
    }

    public void setCycleEndTime(Date cycleEndTime) {
        this.cycleEndTime = cycleEndTime;
    }

    public String getTaskLayerPre() {
        return taskLayerPre;
    }

    public void setTaskLayerPre(String taskLayerPre) {
        this.taskLayerPre = taskLayerPre;
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("taskNamePre", getTaskLayerPre())
                .append("planId", getPlanId())
                .append("cycleType",getCycleType())
                .append("cycleDay", getCycleDay())
                .append("cycleStartTime", getCycleStartTime())
                .append("cycleEndTime", getCycleEndTime())
                .append("taskLayerPre",getTaskLayerPre())
                .append("createTime",getCreateTime())
                .append("createBy",getCreateBy())
                .append("remark", getRemark())
                .append("planName", getPlanName())
                .toString();
    }
}
